Component({
  /**
   * 组件的属性列表
   */
  properties: {
  },

  /**
   * 组件的初始数据
   */
  data: {
    tabBar: [
      {
        "text":"购物车",
        "pagePath":"../../pages/gouwuche/gouwuche",
        "iconPath":"../../images/tabIcons/car-n.png",
        "selectedIconPath":"../../images/tabIcons/car-n.png"
      },
      {
        "text":"首页",
        "pagePath":"../../pages/mall/mall",
        "iconPath":"../../images/tabIcons/mall-n.png",
        "selectedIconPath":"../../images/tabIcons/mall-y.png"
      },
      {
        "text":"我的",
        "pagePath":"../../pages/mall-mine/mall-mine",
        "iconPath":"../../images/tabIcons/mine-n.png",
        "selectedIconPath":"../../images/tabIcons/mine-y.png"
      }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    navigateDetail: function (e) {
      wx.reLaunch({ // 关闭所有打开过的页面，跳转到相对于的页面
        url: e.currentTarget.dataset.url  // 获取tabbar.wxml中data-url传递的参数
      })
    }
  }
})

